<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="author" content="yinq">
<title>{$title}</title>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
{load href="/static/css/materialdesignicons.min.css,/static/css/bootstrap.min.css,/static/css/animate.min.css"}
{load href="/static/js/editormd/css/editormd.preview.min.css"}
{load href="/index/js/nprogress/nprogress.min.css,/static/css/app.min.css,/index/css/site.min.css"}
{load href="/static/js/jquery.min.js" /}
</head>

<body>
<!--页面loading-->
<div id="lyear-preloader" class="loading">
  <div class="ctn-preloader">
    <div class="round_spinner">
      <div class="spinner"></div>
      <img src="/static/images/loading-logo.png" alt="">
    </div>
  </div>
</div>
<div class="manual-layout">
  <div class="manual-sidebar">
    <div class="manual-sidebar-logo">
      <a href="/"><img src="/index/images/logo.png" alt="{:config('app.site_setting.web_site_slogan')}" /></a>
    </div>
    <div class="manual-scroll">
      {$treeHtml|raw}
      <div class="manual-sidebar-footer">
        <p class="manual-copyright">{:config('app.site_setting.web_site_copyright')}</p>
      </div>
    </div>
  </div>
  <div class="manual-header">
    <div class="navbar">
      <div class="manual-header-left">
        <div class="manual-header-toggler">
          <span class="manual-toggler-bar"></span>
          <span class="manual-toggler-bar"></span>
          <span class="manual-toggler-bar"></span>
        </div>
        <span class="text-truncate"> {$title} </span>
      </div>
      <div class="manual-header-right d-none d-sm-block">
        <ul class="navbar-nav">
          <li><a href="/">网站首页</a></li>
        </ul>
      </div>
    </div>
  </div>
  <div class="manual-content" id="pjax">
    <div id="manual-main">
      <h1>{$info.doc_name}</h1>

<textarea style="display:none;">
{$info.doc_content}
</textarea>

    </div>
    <div class="navbar manual-prev-next">
      <div class="prev">
        {if $prevOne}
        上一篇：<a href="{:url('/manual/'.$route_name.'/'.$prevOne['id'])}">{$prevOne['doc_name']}</a>
        {/if}
      </div>
      <div class="next">
        {if $nextOne}
        下一篇：<a href="{:url('/manual/'.$route_name.'/'.$nextOne['id'])}">{$nextOne['doc_name']}</a>
        {/if}
      </div>
    </div>
  </div>
</div>
{load href="/static/js/popper.min.js,/static/js/bootstrap.min.js" /}
{load href="/static/js/editormd/lib/marked.min.js,/static/js/editormd/editormd.min.js" /}
{load href="/static/js/editormd/lib/prettify.min.js,/static/js/editormd/lib/raphael.min.js" /}
{load href="/static/js/editormd/lib/underscore.min.js,/static/js/editormd/lib/sequence-diagram.min.js" /}
{load href="/static/js/editormd/lib/flowchart.min.js,/static/js/editormd/lib/jquery.flowchart.min.js" /}
{load href="/index/js/jquery.pjax.min.js,/index/js/nprogress/nprogress.min.js,/static/js/app.min.js,/index/js/site.min.js"}
{literal}
<script type="text/javascript">
var testEditor;
$(function () {
    testEditor = editormd.markdownToHTML("manual-main", {//注意：这里是上面DIV的id
        htmlDecode: "style,script,iframe",
        emoji: true,
        taskList: true,
        tex: true, // 默认不解析
        flowChart: true, // 默认不解析
        sequenceDiagram: true, // 默认不解析
        codeFold: true,
		atLink: false,
    });
});
</script>
{/literal}
</body>
</html>